-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: standard replacement from dotenv to dotenvx #8216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request migrates from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates the project from the standard dotenv package to @dotenvx/dotenvx for enhanced environment variable management across the monorepo. The migration standardizes the dependency using pnpm's catalog feature to ensure version consistency (1.51.1) across all apps (web, space, admin, and live). The API remains compatible as dotenvx internally uses dotenv and maintains the same .config() method signature.
Key Changes
- Added
@dotenvx/dotenvxversion 1.51.1 to the pnpm catalog for centralized version management - Updated import statements from default imports to namespace imports across all vite config files
- Migrated apps/live from a standalone version (1.49.0) to the catalog version (1.51.1)
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Added @dotenvx/[email protected] to the catalog for centralized version management |
| pnpm-lock.yaml | Updated lockfile with new @dotenvx/dotenvx version and removed direct dotenv dependencies |
| apps/web/vite.config.ts | Changed import from default to namespace import for @dotenvx/dotenvx |
| apps/web/package.json | Replaced dotenv with @dotenvx/dotenvx as a dev dependency using catalog reference |
| apps/space/vite.config.ts | Changed import from default to namespace import for @dotenvx/dotenvx |
| apps/space/package.json | Replaced dotenv with @dotenvx/dotenvx as a dev dependency using catalog reference |
| apps/admin/vite.config.ts | Changed import from default to namespace import for @dotenvx/dotenvx |
| apps/admin/package.json | Replaced dotenv with @dotenvx/dotenvx as a dev dependency using catalog reference |
| apps/live/package.json | Updated from standalone version 1.49.0 to catalog reference for version 1.51.1 |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.